#include <iostream>
#include <thread>
#include "daemon.hpp"

int main()
{
    daemon(true, false);
    while(1)
    {
        std::cout << "pid: " << getpid() << std::endl;
        std::this_thread::sleep_for(std::chrono::seconds(1));
    }
    return 0;
}
